﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucPayment.ascx.cs" Inherits="Client_UserControl_ucPayment" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .img
    {
        vertical-align: bottom;
    }
</style>
<table width="100%" style="padding: 5px 7px 5px 7px; border: solid 1px #cccccc" >
    <tr>
        <td colspan="2" style="color: #2187D9; font-size: 22px; font-family: Arial; font-weight: bold;
            text-align: left;">
            PAYMENT
        </td>
    </tr>
    <tr>
        <td align="right" style="width: 40%; padding-top: 30px; color:Black">
            Card Number:
        </td>
        <td style="padding-top: 30px">
            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                TargetControlID="txtCardNbr">
            </asp:FilteredTextBoxExtender>
            <asp:TextBox ID="txtCardNbr" runat="server" ValidationGroup="grpPay" ToolTip="Input card number"
                autocomplete="off"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtCardNbr"
                runat="server" ErrorMessage="*" SetFocusOnError="True" ValidationGroup="grpPay"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td align="right" style="color:Black">
            Verification Number:
        </td>
        <td>
            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers"
                TargetControlID="txtVerifiNbr">
            </asp:FilteredTextBoxExtender>
            <asp:TextBox ID="txtVerifiNbr" runat="server" ValidationGroup="grpPay" ToolTip="Input verification number"
                Width="80px" MaxLength="4" autocomplete="off"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtVerifiNbr"
                runat="server" ErrorMessage="*" SetFocusOnError="True" ValidationGroup="grpPay"></asp:RequiredFieldValidator>&nbsp;
            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/bgkCCV.png" />
        </td>
    </tr>
    <tr>
        <td align="right" style="color:Black">
            Expiry Date:
        </td>
        <td style="color:Black">
            Month
            <asp:DropDownList ID="cboMonth" runat="server">
                <asp:ListItem Value="01">1</asp:ListItem>
                <asp:ListItem Value="02">2</asp:ListItem>
                <asp:ListItem Value="03">3</asp:ListItem>
                <asp:ListItem Value="04">4</asp:ListItem>
                <asp:ListItem Value="05">5</asp:ListItem>
                <asp:ListItem Value="06">6</asp:ListItem>
                <asp:ListItem Value="07">7</asp:ListItem>
                <asp:ListItem Value="08">8</asp:ListItem>
                <asp:ListItem Value="09">9</asp:ListItem>
                <asp:ListItem Value="10">10</asp:ListItem>
                <asp:ListItem Value="11">11</asp:ListItem>
                <asp:ListItem Value="12">12</asp:ListItem>
            </asp:DropDownList>
            &nbsp; Year
            <asp:DropDownList ID="cboYear" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td align="right" style="color:Black">
            Amount:
        </td>
        <td>
            <span class="clsTotalPriceCart">VND </span>
            <asp:Label ID="lblTotal" runat="server" CssClass="clsTotalPriceCart"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td>
            <asp:ImageButton ID="btnPay" runat="server" Text="Next" CausesValidation="true"
                ImageUrl="~/images/bt_payment.png" ToolTip="Payment" ValidationGroup="grpPay" />
            &nbsp;
            <%--<asp:Button ID="cmd_sumit" runat="server"  
                Text="Button" onclick="cmd_sumit_Click" />--%>&nbsp;
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center" style="height: 35px">
            <img alt="" src="images/duongthang_or.png" />
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td>
            <%--  <form action="<%= ConfigurationManager.AppSettings["PayPalSubmitUrl"] %>" method="post">
            <input type="hidden" name="cmd" value="_xclick" />
            <input type="hidden" name="business" value="<%= ConfigurationManager.AppSettings["PayPalUsername"] %>" />
            <input type="hidden" name="item_name" value="My painting" />
            <input type="hidden" name="amount" value="<%= (lblTotal.Text)%>" />       
            <input type="hidden" name="return" value="http://localhost:17911/PDT/PDTSuccess.aspx" />
            <input type="hidden" name="custom" value="Registration started: <%= DateTime.Now.ToString() %>" />
            <input type="submit" value="Start PDT process!"  />
           
            </form>--%>
            <asp:ImageButton ID="cmd_sumit" runat="server" ImageUrl="~/images/paynow.jpg" ToolTip="Payment with Paypal"
               />
        </td>
    </tr>
    <tr>
        <td align="center" colspan="2" style="height: 35px">
            <img alt="" src="~/images/duongthang_or.png" />
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td style="background-image: url(images/payment-options-direct-deposit.png); background-repeat: no-repeat;
            width: 150px; height: 120px" class="img">
            <asp:ImageButton ID="btnPayment" runat="server" Text="Next" ImageUrl="~/images/bt_payment.png"
                ToolTip="Direct Deposit" CssClass="img" onclick="btnPayment_Click" />
        </td>
    </tr>
    <tr>
        <td colspan="2" style="text-align: center; color:Black">
            <asp:Image ID="paypal" runat="server" ToolTip="Paypal" ImageUrl="~/images/PayPal.png" /><asp:Image
                ID="imgPaymentMaster" runat="server" ToolTip="Master" ImageUrl="~/images/mastercard.png" />
            <asp:Image ID="imgPaymentVisa" runat="server" ToolTip="Visa" ImageUrl="~/images/visa.png" />
            <asp:Image ID="imgPaymentAmericanExpress" runat="server" ToolTip="American Express"
                ImageUrl="~/images/american.png" />
            <asp:Image ID="imgComodo" runat="server" ToolTip="Direct Deposit" ImageUrl="~/images/direct_deposit.png" />
            <ul>
                <li style="text-align: center">• All Payments are conducted using secure certificates.</li>
                <li style="text-align: center">• We do not store any credit card numbers - anywhere!</li>
                <li style="text-align: center">• We are proactive about security - we pay a company
                    to attempt to breach our server security.</li>
                <li style="text-align: center">• We respect your privacy and therefore do not ask for
                    any personal information that isn&#39;t relevant to your order.</li>
            </ul>
        </td>
    </tr>
</table>
